info:
  description: No description
  license:
    name: MIT
  title: NonameApp
  version: 1.5.4
openapi: 3.0.0
paths:
  /audiobooks/filter_names:
    post:
      description: "\n        Vrací seznam číselníků, pomocí kterých je možné filtrovat\
        \ obsah.\n        Sem patří například kategorie, titul, atp\n        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  audiobooks/filter_names:
                    items:
                      type: string
                    type: array
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Vrací seznam číselníků, pomocí kterých je možné filtrovat obsah.
  /dummy:
    post:
      description: '[method description]'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  dummy:
                    description: Odpověď
                    type: boolean
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: '[method description]'
  /magazines/assign_custom_prepaid:
    post:
      description: '[method description]'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                add_temporary_archive_access:
                  description: Přidat dočasný přístup k archivu?
                  type: boolean
                is_test:
                  description: Označení nákupu za testovací
                  type: boolean
                order_id:
                  description: Id objednávky v systému partnera. Uvádíme pro případnou
                    kontrolu, či řešení problémů.
                  type: string
                previous_publication:
                  description: Přidat uživateli do knihovny i aktuální vydání?
                  type: boolean
                price:
                  description: cena za kterou se předplatné prodalo v Kč
                  type: integer
                t_from:
                  type: string
                t_to:
                  type: string
                title_id:
                  description: id titulu
                  type: integer
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user_id:
                  description: jednoznačný identifikátor uživatele
                  type: string
              required:
              - user_id
              - t_from
              - t_to
              - title_id
              - price
              - order_id
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/assign_custom_prepaid:
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: '[method description]'
  /magazines/detail_by_date:
    post:
      description: '[method description]'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                exact:
                  default: true
                  description: Pokud je True, tak vrátí vadání které vyšlo v ten přesný
                    den a jinak NotFound.<br/>Pokud je False, vrátí vydání, které
                    bylo aktuální v požadovaný den.<br/>Default True
                  type: boolean
                released:
                  description: Datum vydání
                  type: string
                title_id:
                  description: id titulu - id časopisu, ne konkrétního vydání
                  type: integer
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user:
                  description: Identifikátor uživatele
                  type: string
              required:
              - title_id
              - released
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/detail_by_date:
                    properties:
                      item:
                        properties:
                          attachments:
                            items: {}
                            type: array
                          bought_time:
                            type: string
                          can_consume:
                            description: Pokud je uveden identifikátor uživavtele,
                              značíjestli je možné obsah konzumovat
                            type: boolean
                          categories:
                            description: Příslušnost v kategoriích
                            items:
                              properties:
                                id:
                                  type: integer
                                name:
                                  type: string
                              required:
                              - id
                              - name
                              type: object
                            type: array
                          description:
                            description: Popisek k danému vydání
                            type: string
                          id:
                            type: string
                          images:
                            items:
                              properties:
                                url:
                                  type: string
                              required:
                              - url
                              type: object
                            type: array
                          metadata:
                            description: Různá metadata k vydání
                            properties:
                              data_size:
                                type: integer
                              num_pages:
                                type: integer
                            type: object
                          prepaids:
                            items:
                              properties:
                                days:
                                  type: integer
                                id:
                                  type: string
                                period:
                                  type: string
                                pieces:
                                  type: integer
                                price:
                                  type: number
                                price_orig:
                                  type: number
                              required:
                              - id
                              - price
                              - price_orig
                              type: object
                            type: array
                          preview:
                            type: object
                          price_one:
                            description: Cena za kuusový prodej, pokud je možný
                            type: number
                          price_period:
                            description: Cena podle periody vydání
                            properties: {}
                            type: object
                          publish_date:
                            type: string
                          publisher_id:
                            items:
                              description: ID vydavatele obsahu
                              type: integer
                            type: array
                          publishers:
                            items:
                              properties: {}
                              type: object
                            type: array
                          short_title:
                            description: Zkrácený název
                            type: string
                          title:
                            description: Úplný název včetně titulu
                            type: string
                          title_id:
                            description: ID titulu
                            type: integer
                          title_name:
                            description: Náev titulu
                            type: string
                          variants:
                            description: Seznam mutací/variant publikace
                            items:
                              properties:
                                description:
                                  description: Popis pokud se liší od základní
                                  type: string
                                id:
                                  type: string
                                image:
                                  description: Obrázek titulní strany
                                  type: string
                                title:
                                  description: Název publikace
                                  type: string
                              required:
                              - id
                              - image
                              - title
                              type: object
                            type: array
                        required:
                        - id
                        - title
                        - title_id
                        - publish_date
                        - preview
                        - can_consume
                        - publisher_id
                        - publishers
                        type: object
                      other:
                        description: Další vydání
                        items:
                          properties:
                            attachments:
                              items: {}
                              type: array
                            bought_time:
                              type: string
                            can_consume:
                              description: Pokud je uveden identifikátor uživavtele,
                                značíjestli je možné obsah konzumovat
                              type: boolean
                            categories:
                              description: Příslušnost v kategoriích
                              items:
                                properties:
                                  id:
                                    type: integer
                                  name:
                                    type: string
                                required:
                                - id
                                - name
                                type: object
                              type: array
                            description:
                              description: Popisek k danému vydání
                              type: string
                            id:
                              type: string
                            images:
                              items:
                                properties:
                                  url:
                                    type: string
                                required:
                                - url
                                type: object
                              type: array
                            metadata:
                              description: Různá metadata k vydání
                              properties:
                                data_size:
                                  type: integer
                                num_pages:
                                  type: integer
                              type: object
                            prepaids:
                              items:
                                properties:
                                  days:
                                    type: integer
                                  id:
                                    type: string
                                  period:
                                    type: string
                                  pieces:
                                    type: integer
                                  price:
                                    type: number
                                  price_orig:
                                    type: number
                                required:
                                - id
                                - price
                                - price_orig
                                type: object
                              type: array
                            preview:
                              type: object
                            price_one:
                              description: Cena za kuusový prodej, pokud je možný
                              type: number
                            price_period:
                              description: Cena podle periody vydání
                              properties: {}
                              type: object
                            publish_date:
                              type: string
                            publisher_id:
                              items:
                                description: ID vydavatele obsahu
                                type: integer
                              type: array
                            publishers:
                              items:
                                properties: {}
                                type: object
                              type: array
                            short_title:
                              description: Zkrácený název
                              type: string
                            title:
                              description: Úplný název včetně titulu
                              type: string
                            title_id:
                              description: ID titulu
                              type: integer
                            title_name:
                              description: Náev titulu
                              type: string
                            variants:
                              description: Seznam mutací/variant publikace
                              items:
                                properties:
                                  description:
                                    description: Popis pokud se liší od základní
                                    type: string
                                  id:
                                    type: string
                                  image:
                                    description: Obrázek titulní strany
                                    type: string
                                  title:
                                    description: Název publikace
                                    type: string
                                required:
                                - id
                                - image
                                - title
                                type: object
                              type: array
                          required:
                          - id
                          - title
                          - title_id
                          - publish_date
                          - preview
                          - can_consume
                          - publisher_id
                          - publishers
                          type: object
                        type: array
                      similar:
                        description: Související zboží
                        items:
                          properties:
                            attachments:
                              items: {}
                              type: array
                            bought_time:
                              type: string
                            can_consume:
                              description: Pokud je uveden identifikátor uživavtele,
                                značíjestli je možné obsah konzumovat
                              type: boolean
                            categories:
                              description: Příslušnost v kategoriích
                              items:
                                properties:
                                  id:
                                    type: integer
                                  name:
                                    type: string
                                required:
                                - id
                                - name
                                type: object
                              type: array
                            description:
                              description: Popisek k danému vydání
                              type: string
                            id:
                              type: string
                            images:
                              items:
                                properties:
                                  url:
                                    type: string
                                required:
                                - url
                                type: object
                              type: array
                            metadata:
                              description: Různá metadata k vydání
                              properties:
                                data_size:
                                  type: integer
                                num_pages:
                                  type: integer
                              type: object
                            prepaids:
                              items:
                                properties:
                                  days:
                                    type: integer
                                  id:
                                    type: string
                                  period:
                                    type: string
                                  pieces:
                                    type: integer
                                  price:
                                    type: number
                                  price_orig:
                                    type: number
                                required:
                                - id
                                - price
                                - price_orig
                                type: object
                              type: array
                            preview:
                              type: object
                            price_one:
                              description: Cena za kuusový prodej, pokud je možný
                              type: number
                            price_period:
                              description: Cena podle periody vydání
                              properties: {}
                              type: object
                            publish_date:
                              type: string
                            publisher_id:
                              items:
                                description: ID vydavatele obsahu
                                type: integer
                              type: array
                            publishers:
                              items:
                                properties: {}
                                type: object
                              type: array
                            short_title:
                              description: Zkrácený název
                              type: string
                            title:
                              description: Úplný název včetně titulu
                              type: string
                            title_id:
                              description: ID titulu
                              type: integer
                            title_name:
                              description: Náev titulu
                              type: string
                            variants:
                              description: Seznam mutací/variant publikace
                              items:
                                properties:
                                  description:
                                    description: Popis pokud se liší od základní
                                    type: string
                                  id:
                                    type: string
                                  image:
                                    description: Obrázek titulní strany
                                    type: string
                                  title:
                                    description: Název publikace
                                    type: string
                                required:
                                - id
                                - image
                                - title
                                type: object
                              type: array
                          required:
                          - id
                          - title
                          - title_id
                          - publish_date
                          - preview
                          - can_consume
                          - publisher_id
                          - publishers
                          type: object
                        type: array
                    required:
                    - item
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: '[method description]'
  /magazines/filter_list:
    post:
      description: "\n        Vypíše zvolený číselník\n\n        historicky je podporován\
        \ číselník \"titles\", ale nově je nahrazen\n        metodou title_list\n\
        \        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                filter_name:
                  enum:
                  - category
                  - titles
                  type: string
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
              required:
              - filter_name
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/filter_list:
                    items:
                      properties:
                        children:
                          items: {}
                          type: array
                        id:
                          type: integer
                        meta:
                          description: Pokud k položce máme další informace, přidou
                            sem
                          properties: {}
                          type: object
                        name:
                          type: string
                        parent_id:
                          type: integer
                      required:
                      - id
                      - name
                      type: object
                    type: array
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Vypíše zvolený číselník
  /magazines/filter_names:
    post:
      description: "\n        Vrací seznam číselníků, pomocí kterých je možné filtrovat\
        \ obsah.\n        Sem patří například kategorie, titul, atp\n        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/filter_names:
                    items:
                      type: string
                    type: array
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Vrací seznam číselníků, pomocí kterých je možné filtrovat obsah.
  /magazines/item_assign:
    post:
      description: "\n        Přiřadí položku uživateli. Slouží zároveň jako ohlášení\
        \ nákupu.\n        Pokud se jedná o jednorázový nákup, není potřeba uvádět\
        \ periodu.\n        User_id může být jakýkoliv řetězec, který jednoznačně\
        \ identifikuje\n        uživatele do té míry, aby bylo možné připsat mu nárok\
        \ na obsah\n        a uživatel si ho mohl  v budoucnu vyzvednout.\n      \
        \  Danému užitavetelskému identifikátoru se také budou připisovat\n      \
        \  všechny budoucí nároky na obsah podle zvoleného režimu předplatného.\n\
        \        Pokud se k id předplatného přidá i date_from tak se předplatné začne\
        \ až k tomuto datu\n        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                date_from:
                  description: Datum, od kterého platí předplatné
                  type: string
                item_id:
                  description: ID vydání publikace
                  type: string
                payload:
                  description: Parametry platby
                  properties: {}
                  type: object
                period_id:
                  description: ID periody předplatného podle číselníku předplatných
                  type: string
                price:
                  description: Částka, za kterou proběhla transakce
                  type: number
                reason:
                  enum:
                  - buy
                  - test
                  - customercare
                  type: string
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user_id:
                  description: jednoznačný identifikátor uživatele
                  type: string
              required:
              - item_id
              - user_id
              - price
              - reason
              - payload
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/item_assign:
                    properties:
                      date_to:
                        description: Datum, do kdy platí předplatné
                        type: string
                      recurent:
                        description: Jestli se jedná o předplatné
                        type: boolean
                    required:
                    - recurent
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Přiřadí položku uživateli. Slouží zároveň jako ohlášení nákupu.
  /magazines/item_consume:
    post:
      description: "\n        Požadavek uživele na konzumaci obsahu. Dojde k ověření\
        \ nároku uživatele\n        na titul a na základě toho uživatel dostane odkza,\
        \ kde je možné vydání\n        část\n        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                item_id:
                  description: ID vydání publikace
                  type: string
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user_id:
                  description: jednoznačný identifikátor uživatele
                  type: string
              required:
              - item_id
              - user_id
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/item_consume:
                    properties:
                      consume_url:
                        description: Adresa, kde je možné obsah konzumovat
                        type: string
                    required:
                    - consume_url
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Požadavek uživele na konzumaci obsahu. Dojde k ověření nároku uživatele
  /magazines/item_detail:
    post:
      description: '[method description]'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                item_id:
                  description: id publikace
                  type: string
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user:
                  description: Identifikátor uživatele
                  type: string
              required:
              - item_id
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/item_detail:
                    properties:
                      item:
                        properties:
                          attachments:
                            items: {}
                            type: array
                          bought_time:
                            type: string
                          can_consume:
                            description: Pokud je uveden identifikátor uživavtele,
                              značíjestli je možné obsah konzumovat
                            type: boolean
                          categories:
                            description: Příslušnost v kategoriích
                            items:
                              properties:
                                id:
                                  type: integer
                                name:
                                  type: string
                              required:
                              - id
                              - name
                              type: object
                            type: array
                          description:
                            description: Popisek k danému vydání
                            type: string
                          id:
                            type: string
                          images:
                            items:
                              properties:
                                url:
                                  type: string
                              required:
                              - url
                              type: object
                            type: array
                          metadata:
                            description: Různá metadata k vydání
                            properties:
                              data_size:
                                type: integer
                              num_pages:
                                type: integer
                            type: object
                          prepaids:
                            items:
                              properties:
                                days:
                                  type: integer
                                id:
                                  type: string
                                period:
                                  type: string
                                pieces:
                                  type: integer
                                price:
                                  type: number
                                price_orig:
                                  type: number
                              required:
                              - id
                              - price
                              - price_orig
                              type: object
                            type: array
                          preview:
                            type: object
                          price_one:
                            description: Cena za kuusový prodej, pokud je možný
                            type: number
                          price_period:
                            description: Cena podle periody vydání
                            properties: {}
                            type: object
                          publish_date:
                            type: string
                          publisher_id:
                            items:
                              description: ID vydavatele obsahu
                              type: integer
                            type: array
                          publishers:
                            items:
                              properties: {}
                              type: object
                            type: array
                          short_title:
                            description: Zkrácený název
                            type: string
                          title:
                            description: Úplný název včetně titulu
                            type: string
                          title_id:
                            description: ID titulu
                            type: integer
                          title_name:
                            description: Náev titulu
                            type: string
                          variants:
                            description: Seznam mutací/variant publikace
                            items:
                              properties:
                                description:
                                  description: Popis pokud se liší od základní
                                  type: string
                                id:
                                  type: string
                                image:
                                  description: Obrázek titulní strany
                                  type: string
                                title:
                                  description: Název publikace
                                  type: string
                              required:
                              - id
                              - image
                              - title
                              type: object
                            type: array
                        required:
                        - id
                        - title
                        - title_id
                        - publish_date
                        - preview
                        - can_consume
                        - publisher_id
                        - publishers
                        type: object
                      other:
                        description: Další vydání
                        items:
                          properties:
                            attachments:
                              items: {}
                              type: array
                            bought_time:
                              type: string
                            can_consume:
                              description: Pokud je uveden identifikátor uživavtele,
                                značíjestli je možné obsah konzumovat
                              type: boolean
                            categories:
                              description: Příslušnost v kategoriích
                              items:
                                properties:
                                  id:
                                    type: integer
                                  name:
                                    type: string
                                required:
                                - id
                                - name
                                type: object
                              type: array
                            description:
                              description: Popisek k danému vydání
                              type: string
                            id:
                              type: string
                            images:
                              items:
                                properties:
                                  url:
                                    type: string
                                required:
                                - url
                                type: object
                              type: array
                            metadata:
                              description: Různá metadata k vydání
                              properties:
                                data_size:
                                  type: integer
                                num_pages:
                                  type: integer
                              type: object
                            prepaids:
                              items:
                                properties:
                                  days:
                                    type: integer
                                  id:
                                    type: string
                                  period:
                                    type: string
                                  pieces:
                                    type: integer
                                  price:
                                    type: number
                                  price_orig:
                                    type: number
                                required:
                                - id
                                - price
                                - price_orig
                                type: object
                              type: array
                            preview:
                              type: object
                            price_one:
                              description: Cena za kuusový prodej, pokud je možný
                              type: number
                            price_period:
                              description: Cena podle periody vydání
                              properties: {}
                              type: object
                            publish_date:
                              type: string
                            publisher_id:
                              items:
                                description: ID vydavatele obsahu
                                type: integer
                              type: array
                            publishers:
                              items:
                                properties: {}
                                type: object
                              type: array
                            short_title:
                              description: Zkrácený název
                              type: string
                            title:
                              description: Úplný název včetně titulu
                              type: string
                            title_id:
                              description: ID titulu
                              type: integer
                            title_name:
                              description: Náev titulu
                              type: string
                            variants:
                              description: Seznam mutací/variant publikace
                              items:
                                properties:
                                  description:
                                    description: Popis pokud se liší od základní
                                    type: string
                                  id:
                                    type: string
                                  image:
                                    description: Obrázek titulní strany
                                    type: string
                                  title:
                                    description: Název publikace
                                    type: string
                                required:
                                - id
                                - image
                                - title
                                type: object
                              type: array
                          required:
                          - id
                          - title
                          - title_id
                          - publish_date
                          - preview
                          - can_consume
                          - publisher_id
                          - publishers
                          type: object
                        type: array
                      similar:
                        description: Související zboží
                        items:
                          properties:
                            attachments:
                              items: {}
                              type: array
                            bought_time:
                              type: string
                            can_consume:
                              description: Pokud je uveden identifikátor uživavtele,
                                značíjestli je možné obsah konzumovat
                              type: boolean
                            categories:
                              description: Příslušnost v kategoriích
                              items:
                                properties:
                                  id:
                                    type: integer
                                  name:
                                    type: string
                                required:
                                - id
                                - name
                                type: object
                              type: array
                            description:
                              description: Popisek k danému vydání
                              type: string
                            id:
                              type: string
                            images:
                              items:
                                properties:
                                  url:
                                    type: string
                                required:
                                - url
                                type: object
                              type: array
                            metadata:
                              description: Různá metadata k vydání
                              properties:
                                data_size:
                                  type: integer
                                num_pages:
                                  type: integer
                              type: object
                            prepaids:
                              items:
                                properties:
                                  days:
                                    type: integer
                                  id:
                                    type: string
                                  period:
                                    type: string
                                  pieces:
                                    type: integer
                                  price:
                                    type: number
                                  price_orig:
                                    type: number
                                required:
                                - id
                                - price
                                - price_orig
                                type: object
                              type: array
                            preview:
                              type: object
                            price_one:
                              description: Cena za kuusový prodej, pokud je možný
                              type: number
                            price_period:
                              description: Cena podle periody vydání
                              properties: {}
                              type: object
                            publish_date:
                              type: string
                            publisher_id:
                              items:
                                description: ID vydavatele obsahu
                                type: integer
                              type: array
                            publishers:
                              items:
                                properties: {}
                                type: object
                              type: array
                            short_title:
                              description: Zkrácený název
                              type: string
                            title:
                              description: Úplný název včetně titulu
                              type: string
                            title_id:
                              description: ID titulu
                              type: integer
                            title_name:
                              description: Náev titulu
                              type: string
                            variants:
                              description: Seznam mutací/variant publikace
                              items:
                                properties:
                                  description:
                                    description: Popis pokud se liší od základní
                                    type: string
                                  id:
                                    type: string
                                  image:
                                    description: Obrázek titulní strany
                                    type: string
                                  title:
                                    description: Název publikace
                                    type: string
                                required:
                                - id
                                - image
                                - title
                                type: object
                              type: array
                          required:
                          - id
                          - title
                          - title_id
                          - publish_date
                          - preview
                          - can_consume
                          - publisher_id
                          - publishers
                          type: object
                        type: array
                    required:
                    - item
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: '[method description]'
  /magazines/item_list:
    post:
      description: '[method description]'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                count:
                  description: Počet položek ve výpise, default 10
                  type: integer
                filters:
                  properties:
                    category_id:
                      description: ID kategorie
                      type: integer
                    ids:
                      description: Seznam konktrítních id vydání
                      items:
                        type: string
                      type: array
                    published_from:
                      description: Datum od kterého vydání vyšlo
                      type: string
                    title_id:
                      items:
                        description: id titulu
                        type: integer
                      type: array
                  type: object
                offset:
                  description: Posun v řadě
                  type: integer
                order:
                  description: Podle čeho se řadit, Default 'release'
                  enum:
                  - release
                  - id
                  nullable: true
                  type: string
                order_dir:
                  description: Směr řazení, Default 'desc'
                  enum:
                  - asc
                  - desc
                  nullable: true
                  type: string
                show:
                  description: Co zobrazit navíc na výstupu
                  items:
                    enum:
                    - attachments
                    - variants
                    type: string
                  type: array
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user:
                  description: Identifikátor uživatele
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/item_list:
                    properties:
                      items:
                        items:
                          properties:
                            attachments:
                              items: {}
                              type: array
                            bought_time:
                              type: string
                            can_consume:
                              description: Pokud je uveden identifikátor uživavtele,
                                značíjestli je možné obsah konzumovat
                              type: boolean
                            categories:
                              description: Příslušnost v kategoriích
                              items:
                                properties:
                                  id:
                                    type: integer
                                  name:
                                    type: string
                                required:
                                - id
                                - name
                                type: object
                              type: array
                            description:
                              description: Popisek k danému vydání
                              type: string
                            id:
                              type: string
                            images:
                              items:
                                properties:
                                  url:
                                    type: string
                                required:
                                - url
                                type: object
                              type: array
                            metadata:
                              description: Různá metadata k vydání
                              properties:
                                data_size:
                                  type: integer
                                num_pages:
                                  type: integer
                              type: object
                            prepaids:
                              items:
                                properties:
                                  days:
                                    type: integer
                                  id:
                                    type: string
                                  period:
                                    type: string
                                  pieces:
                                    type: integer
                                  price:
                                    type: number
                                  price_orig:
                                    type: number
                                required:
                                - id
                                - price
                                - price_orig
                                type: object
                              type: array
                            preview:
                              type: object
                            price_one:
                              description: Cena za kuusový prodej, pokud je možný
                              type: number
                            price_period:
                              description: Cena podle periody vydání
                              properties: {}
                              type: object
                            publish_date:
                              type: string
                            publisher_id:
                              items:
                                description: ID vydavatele obsahu
                                type: integer
                              type: array
                            publishers:
                              items:
                                properties: {}
                                type: object
                              type: array
                            short_title:
                              description: Zkrácený název
                              type: string
                            title:
                              description: Úplný název včetně titulu
                              type: string
                            title_id:
                              description: ID titulu
                              type: integer
                            title_name:
                              description: Náev titulu
                              type: string
                            variants:
                              description: Seznam mutací/variant publikace
                              items:
                                properties:
                                  description:
                                    description: Popis pokud se liší od základní
                                    type: string
                                  id:
                                    type: string
                                  image:
                                    description: Obrázek titulní strany
                                    type: string
                                  title:
                                    description: Název publikace
                                    type: string
                                required:
                                - id
                                - image
                                - title
                                type: object
                              type: array
                          required:
                          - id
                          - title
                          - title_id
                          - publish_date
                          - preview
                          - can_consume
                          - publisher_id
                          - publishers
                          type: object
                        type: array
                      total:
                        type: integer
                    required:
                    - items
                    - total
                    type: object
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: '[method description]'
  /magazines/title_list:
    post:
      description: '[method description]'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                show_disabled:
                  description: Zobrazit ve výsledku i tituly, které mají ukončený
                    prodej
                  type: boolean
                show_only_titles_with_prepaids:
                  description: Zobrazit ve výsledku jen tituly, které mají nějaké
                    předplatné
                  type: boolean
                show_prepaids:
                  default: true
                  description: Zobrazit ve výsledku i předplatná
                  type: boolean
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/title_list:
                    items:
                      properties:
                        description:
                          description: Popis. Pozor - Může obsahovat HTML značky
                          type: string
                        disable_sale:
                          description: Info jestli je titul vyřazen z prodeje
                          type: boolean
                        id:
                          description: Id titulu
                          type: integer
                        name:
                          description: Název titulu. (neměl by obsahovat HTML. Tedy
                            interpretovat jako text a je potřeba provádět při konverzi
                            do html escape)
                          type: string
                        prepaids:
                          items:
                            properties:
                              archive:
                                description: Má předplatné i přístup do archivu?
                                type: boolean
                              content_type:
                                description: Typ položky pro potvrzení nákupu
                                enum:
                                - emag_prepaid
                                type: string
                              days:
                                description: Počet dní předplatného pokud je předplatné
                                  určené časově
                                type: integer
                              id:
                                description: id předplatného
                                type: string
                              name:
                                description: Název púředplatného
                                type: string
                              pieces:
                                description: Počet vydání v rámci předplatného pokud
                                  je předplatné určené počtem vydání
                                type: integer
                              price:
                                description: Cena za položku, nebo null pokud je prodej
                                  zakázán
                                properties:
                                  emag_prepaid:
                                    description: Aktuální cena v Kč
                                    type: integer
                                required:
                                - emag_prepaid
                                type: object
                            required:
                            - id
                            - name
                            - content_type
                            - archive
                            type: object
                          type: array
                        publisher:
                          description: Vydavatel
                          properties:
                            id:
                              description: id vydavatele
                              type: integer
                            name:
                              description: jméno vydavatele
                              type: string
                          required:
                          - id
                          - name
                          type: object
                      required:
                      - id
                      - name
                      - description
                      - publisher
                      - disable_sale
                      type: object
                    type: array
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: '[method description]'
  /magazines/user_library:
    post:
      description: "\n        Vypíše uživatelskou knihovnu, tedy všechna vydání na\
        \ která má uživatel\n        nárok\n        "
      requestBody:
        content:
          application/json:
            schema:
              properties:
                count:
                  description: Počet položek na stránku. Default 999
                  minimum: 1
                  type: integer
                filters:
                  description: Zatím nefunguje
                  properties:
                    title_id:
                      description: id titulu
                      type: integer
                  type: object
                offset:
                  description: Offset u stránkování default 0
                  minimum: 0
                  type: integer
                show:
                  description: Co zobrazit navíc na výstupu
                  items:
                    enum:
                    - attachments
                    - variants
                    type: string
                  type: array
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user_id:
                  description: jednoznačný identifikátor uživatele
                  type: string
              required:
              - user_id
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/user_library:
                    items:
                      properties:
                        attachments:
                          items: {}
                          type: array
                        bought_time:
                          type: string
                        can_consume:
                          description: Pokud je uveden identifikátor uživavtele, značíjestli
                            je možné obsah konzumovat
                          type: boolean
                        categories:
                          description: Příslušnost v kategoriích
                          items:
                            properties:
                              id:
                                type: integer
                              name:
                                type: string
                            required:
                            - id
                            - name
                            type: object
                          type: array
                        description:
                          description: Popisek k danému vydání
                          type: string
                        id:
                          type: string
                        images:
                          items:
                            properties:
                              url:
                                type: string
                            required:
                            - url
                            type: object
                          type: array
                        metadata:
                          description: Různá metadata k vydání
                          properties:
                            data_size:
                              type: integer
                            num_pages:
                              type: integer
                          type: object
                        prepaids:
                          items:
                            properties:
                              days:
                                type: integer
                              id:
                                type: string
                              period:
                                type: string
                              pieces:
                                type: integer
                              price:
                                type: number
                              price_orig:
                                type: number
                            required:
                            - id
                            - price
                            - price_orig
                            type: object
                          type: array
                        preview:
                          type: object
                        price_one:
                          description: Cena za kuusový prodej, pokud je možný
                          type: number
                        price_period:
                          description: Cena podle periody vydání
                          properties: {}
                          type: object
                        publish_date:
                          type: string
                        publisher_id:
                          items:
                            description: ID vydavatele obsahu
                            type: integer
                          type: array
                        publishers:
                          items:
                            properties: {}
                            type: object
                          type: array
                        short_title:
                          description: Zkrácený název
                          type: string
                        title:
                          description: Úplný název včetně titulu
                          type: string
                        title_id:
                          description: ID titulu
                          type: integer
                        title_name:
                          description: Náev titulu
                          type: string
                        variants:
                          description: Seznam mutací/variant publikace
                          items:
                            properties:
                              description:
                                description: Popis pokud se liší od základní
                                type: string
                              id:
                                type: string
                              image:
                                description: Obrázek titulní strany
                                type: string
                              title:
                                description: Název publikace
                                type: string
                            required:
                            - id
                            - image
                            - title
                            type: object
                          type: array
                      required:
                      - id
                      - title
                      - title_id
                      - publish_date
                      - preview
                      - can_consume
                      - publisher_id
                      - publishers
                      type: object
                    type: array
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: Vypíše uživatelskou knihovnu, tedy všechna vydání na která má uživatel
  /magazines/user_prepaids:
    post:
      description: '[method description]'
      requestBody:
        content:
          application/json:
            schema:
              properties:
                token:
                  description: Token podle https://jwt.io, HS512, dist_id a secret
                    obdržíte v rámci zapojení API
                  type: string
                user_id:
                  description: jednoznačný identifikátor uživatele
                  type: string
              required:
              - user_id
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  magazines/user_prepaids:
                    items: {}
                    type: array
                  status:
                    example: 200
                    type: number
                  status_message:
                    example: OK
                    type: string
                type: object
          description: OK
      summary: '[method description]'
servers:
- description: Api url
  url: http://frontends11-test:80
